<template>
    <div class="recently-played app-card">
        <div class="title-line">
            <div class="title">{{ title }}</div>
            <div class="more"></div>
        </div>
        <div class="content hide-scrollbar">
            <div class="sing-list">
                <div class="item" v-for="item in 5">
                    <div class="left-box">
                        <div class="img"></div>
                    </div>
                    <div class="right-box">
                        <div class="name text-ellipsis">无名的人</div>
                        <div class="singer text-ellipsis">毛不易</div>
                    </div>
                    <PlayerBtnGroup></PlayerBtnGroup>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import PlayerBtnGroup from '@/component/func/PlayerBtnGroup.vue';

const props = defineProps({
    title: { type: String, default: '歌曲列表' }
});
</script>

<style scoped lang="less">
.recently-played .content {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;

    .sing-list .item {
        padding: 2vw;
        width: 100%;
        height: 15vw;
        display: flex;
        align-items: center;
        gap: 3vw;

        .left-box {
            --size: 13vw;
            width: var(--size);
            height: var(--size);
            border-radius: 2vw;
            overflow: hidden;

            .img {
                width: 100%;
                height: 100%;
                background-color: var(--loading-color);
            }
        }

        .right-box {
            flex: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 1vw;

            .name {
                font-size: 3.5vw;
                color: #000;
            }

            .singer {
                font-size: 3vw;
                color: #999;
            }
        }
    }
}
</style>